﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SAM.Framework.ILicence.Models
{
    [Serializable]
    /// <summary>
    /// 授权信息顶级抽象（可以序列化的对象）
    /// </summary>
    public class AuthorizationInfo
    {
        /// <summary>
        /// 获取或设置对象对应的机器码对象
        /// </summary>
        public MachineCodeInfo MachineCodeInfo { get; set; }
    }

    [Serializable]
    /// <summary>
    /// 普通的授权验证信息
    /// </summary>
    public class AuthorizationNormInfo : AuthorizationInfo
    {
        /// <summary>
        /// 授权Code
        /// </summary>
        public string AuthorizationCode { get; set; }
    }
}
